//Excel
import JsonExcel from "vue-json-excel";
Vue.component("downloadExcel", JsonExcel);

import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store/index";
import directives from "./plugins/directives.js"; // 全局指令
import "@/assets/less/uiGlobal"; // 注册UI组件
import "../public/iconFont/iconfont.css"; // 引入字体图标库
import "./assets/less/common.less"; // 全局公用的css样式
import "./assets/less/newCommon.less"; // 全局公用的css样式
import api from "./api"; // 导入api接口
import { settingSign } from "@/util/validate";
// 引入Echarts
import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;

Vue.prototype.$bus = new Vue();
Vue.prototype.$settingSign = settingSign;
Vue.prototype.$api = api; // 将api挂载到vue的原型上

Vue.config.productionTip = false;
Vue.use(directives);


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
